package com.zjf.carpark.entities;

/**
 * @description:IC卡
 * @author: 张建飞
 * @createDate: 2019/12/20
 * @version: 1.0
 */
public class ICcard {
    private String icCardId;//ic卡Id
    private double balance;//卡余额
    private Integer ownerId;//所属用户Id
    private Boolean deleteState;//删除状态
    private Owner owner;
    private String carNum;//持卡人的车牌号
    private String parkPlaceNum;
    private Integer parkPlaceId;

    public ICcard() {
    }

    public ICcard(String icCardId, double balance, Integer ownerId, Boolean deleteState, Owner owner, String carNum, String parkPlaceNum, Integer parkPlaceId) {
        this.icCardId = icCardId;
        this.balance = balance;
        this.ownerId = ownerId;
        this.deleteState = deleteState;
        this.owner = owner;
        this.carNum = carNum;
        this.parkPlaceNum = parkPlaceNum;
        this.parkPlaceId = parkPlaceId;
    }

    public String getIcCardId() {
        return icCardId;
    }

    public void setIcCardId(String icCardId) {
        this.icCardId = icCardId;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public Integer getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(Integer ownerId) {
        this.ownerId = ownerId;
    }

    public Boolean getDeleteState() {
        return deleteState;
    }

    public void setDeleteState(Boolean deleteState) {
        this.deleteState = deleteState;
    }

    public Owner getOwner() {
        return owner;
    }

    public void setOwner(Owner owner) {
        this.owner = owner;
    }

    public String getCarNum() {
        return carNum;
    }

    public void setCarNum(String carNum) {
        this.carNum = carNum;
    }

    public String getParkPlaceNum() {
        return parkPlaceNum;
    }

    public void setParkPlaceNum(String parkPlaceNum) {
        this.parkPlaceNum = parkPlaceNum;
    }

    public Integer getParkPlaceId() {
        return parkPlaceId;
    }

    public void setParkPlaceId(Integer parkPlaceId) {
        this.parkPlaceId = parkPlaceId;
    }

    @Override
    public String toString() {
        return "ICcard{" +
                "icCardId='" + icCardId + '\'' +
                ", balance=" + balance +
                ", ownerId=" + ownerId +
                ", deleteState=" + deleteState +
                ", owner=" + owner +
                ", carNum='" + carNum + '\'' +
                ", parkPlaceNum='" + parkPlaceNum + '\'' +
                ", parkPlaceId=" + parkPlaceId +
                '}';
    }
}
